package com.jiantong.lawEnforcing.service;

import com.jiantong.lawEnforcing.model.CauseActions;
import io.terminus.common.model.Paging;
import io.terminus.common.model.Response;

/**
 *案由列表
 * Created by mz03 on 2017/8/17.
 */
public interface CauseActionsService {

    /**
     * id 查找
     * @param id
     * @return News
     */
    Response<CauseActions> finById(Long id);


    /**
     * 创建
     * @param causeActions 单据对象
     * @return 主键 id
     */
    Response<Long> create(CauseActions causeActions);



    /**
     * 更新
     * @param causeActions 单据对象
     * @return true or false
     */
    Response<Boolean> update(CauseActions causeActions);

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @param status
     * @return
     */
    Response<Paging<CauseActions>> pagingByStatus(Integer pageNo, Integer pageSize, Integer status);

}
